package com.atguigu.gmall.search.service;

import com.atguigu.gmall.search.entity.Goods;
import com.atguigu.gmall.search.vo.SearchParamVo;
import com.atguigu.gmall.search.vo.SearchResponseVo;

public interface SearchBizService {

    //把商品保存到es中
    void onSaleGoods(Goods goods);

    //es下架商品
    void cancelSale(Long skuId);

    /**
     * 商品检索
     * @param paramVo
     * @return
     */
    SearchResponseVo search(SearchParamVo paramVo);

    /**
     * 更新热度分
     * @param skuId
     * @param hotScore
     */
    void updateHotScore(Long skuId, Long hotScore);
}
